package com.csc.finalproject.dao;

import java.util.List;

import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import javax.persistence.TypedQuery;

import org.springframework.stereotype.Component;

import org.springframework.stereotype.Repository;

import com.csc.finalproject.domain.Role;

@Repository("roleDAO")
public class RoleDAOImpl extends GenericDAOImpl<Role> implements RoleDAO {

	@Override
	public Role getRole(int id) {
		Role role = this.em.find(Role.class, id);
		return role;
	}
}
